package am.fp.events
{                           
  import flash.events.Event;
  
  public class SearchEvent extends Event
  {  
    public static const START: String = "startSearch";
    public static const ABORT: String = "abortSearch";
    public static const FINISHED: String = "searchFinished";
    public static const NEW_RESULT: String = "newSearchResult";
    
    protected var m_textToFind: String;
    protected var m_caseSensitive: Boolean;
    protected var m_result: Object;
    public function get textToFind(): String { return m_textToFind; }
    public function get caseSensitive(): Boolean { return m_caseSensitive; }
    public function get result(): Object { return m_result; }
    
    public function SearchEvent(type: String, textToFind: String = "", caseSensitive: Boolean = false, result: Object = null)
    {
      m_textToFind = textToFind;
      m_caseSensitive = caseSensitive;
      m_result = result;
      super(type, false, false);
    }
  }
}
